<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <style ></style>
    <meta charset="UTF-8">
    <title>登录页面</title>
</head>
<body>
<h1>银行管理系统</h1>

<form th:action="@{/doLogin}">
    <h4 style="color: red" th:if="${currentUser}==null" >用户无权限，请先登录！ </h4>
    <h4 style="color: red" th:text="${msg}"></h4>
    <p>用户名:<input type="text" th:name="userName" th:value="${name}"/></p>
    <p>密码：<input type="password"  th:name="password" th:value="${pass}"/><br></p>
    <p>记住我：<input type="checkbox" name="rememberMe" value="1" ></p>
    <input type="hidden" name="rememberMe" value="0">
    <input type="submit" value="登录"/>&nbsp;&nbsp;
    <input  type="button" th:value="注册" onclick="window.location='/register'"/>
</form>

</body>
</html>